<template>
  <div>
    <el-radio-group v-model="radio1" size="large" v-bind="$attrs">
      <el-radio-button
        v-for="(item, index) in props.radio"
        :key="index"
        :label="item.label"
        :value="item.field"
        v-bind="$attrs"
      ></el-radio-button>
    </el-radio-group>
  </div>
</template>
<script setup>
  const props = defineProps({
    radio: {
      type: Array,
    },
  });
  const radio1 = ref('');
</script>
